#ifndef QLISTITEMWIDGET_H
#define QLISTITEMWIDGET_H

#include <QWidget>
#include <QtGui>

class qListItemWidget;
class qListItemWidgetView;
class qListItemWidget : public QWidget
{
    Q_OBJECT
public:
    explicit qListItemWidget(QWidget *parent = 0);
    
signals:
    
public slots:
    void Action_Install_Bt();
private:
    void CreateWidget();
    void SetWidgetStyle();
    void CreateLayout();
    void SetUpActions();


    QHBoxLayout *duopl_pLayout;
    QVBoxLayout *duopl_pFontLayout;
    QVBoxLayout *duopl_pVoteLayout;
    //QLabel *duopl_pmainVersion;
    QLabel *duopl_pIcon;
    QLabel  *duopl_pFontBond;
    QLabel  *duopl_pFont;
    QLabel  *duopl_pFilesize;
    QLabel  *duopl_pVoteBond;
    QLabel  *duopl_pVote;
    QProgressBar    *progressBar;
    QPushButton *duopl_pButtonInstall;
    
    
};

class qListItemWidgetView : public QWidget
{
    Q_OBJECT
public:
    explicit qListItemWidgetView(QWidget *parent = 0);
    
signals:
    
public slots:
    //void Action_Install_Bt();
private:
    void CreateWidget();
    void SetWidgetStyle();
    void CreateLayout();
    void SetUpActions();
    void paintEvent(QPaintEvent *event);
    QListWidget *listWidget;
    #if 0
    QHBoxLayout *duopl_pLayout;
    QVBoxLayout *duopl_pFontLayout;
    QVBoxLayout *duopl_pVoteLayout;
    //QLabel *duopl_pmainVersion;
    QLabel *duopl_pIcon;
    QLabel  *duopl_pFontBond;
    QLabel  *duopl_pFont;
    QLabel  *duopl_pFilesize;
    QLabel  *duopl_pVoteBond;
    QLabel  *duopl_pVote;
    QProgressBar    *progressBar;
    QPushButton *duopl_pButtonInstall;
    #endif
public:
    void addItem(QWidget *item);
    
    void generateTestItem(int count=3);
    
};
#endif // QLISTITEMWIDGET_H
